<!DOCTYPE HTML>
<html class="ui-mobile">
  <head>
      <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <style>
      body {
        margin: 0px;
        padding: 0px;
      }
    </style>
  </head>
  <body>
    <div style="position: relative">
      <canvas id="myCanvas" width="578" height="200" style="position: absolute;border: 1px solid #000;top: 0px;left:0px;z-index: 0"></canvas>
      <table style="width: 100%;height: 200px;">
        <tr>
          <td>
            <table>
              <tr>
                <td style="vertical-align: bottom;">
            		<div style="border: 1px solid #f00;width: 30px;height: 100px;float: left;"></div>
         		</td>
          		<td style="vertical-align: bottom;">
            		<div style="border: 1px solid #f00;width: 30px;height: 150px;float: left"></div>
          		</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
    <script>
      var canvas = document.getElementById('myCanvas');
      var context = canvas.getContext('2d');

      context.beginPath();
      context.moveTo(100, 150);
      context.lineTo(450, 50);
      context.stroke();
    </script>
  </body>
</html>      